package com.myzl.coal.service;

import cn.hutool.core.date.DateTime;
import com.myzl.coal.mongo.domain.HistoryData;

import java.util.List;

/**
 *@ClassName: HistoryDataService
 *@Author: wzb
 *@Date: 2023/6/12 9:58
 *@Description:
 */
public interface MongoHistoryDataMapper {
    public List<HistoryData> selectList(Integer deviceId, List<Integer> params, DateTime createTime);

    public HistoryData selectOne(Integer deviceId, Integer dictValue);

    public HistoryData selectOneDesc(Integer deviceId, Integer dictValue);

    public String selectMax(Integer deviceId, Integer dictValue);

    public HistoryData selectOne(Integer deviceId, Integer dictValue, DateTime createTime);

    public boolean deleteList(Integer deviceId, List<String> idList, DateTime createTime);

    public boolean deleteList(Integer deviceType, DateTime createTime);
}
